package com.jic.market.request.rest.discount;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author yinhaijun
 * @date: 2020/4/27
 */
@Data
public class DiscountSubOrderRequest implements Serializable {

    private static final long serialVersionUID = -5992915610008496111L;

    @NotBlank(message = "子订单号不能为空")
    @ApiModelProperty(notes = "子订单号", required = true)
    private String orderNo;

    @ApiModelProperty(notes = "条件促销优惠明细")
    private List<ConditionDiscountRequest> conditionDiscountRequestList;

    @NotNull(message = "商品明细及对应的单品活动不能为空")
    @ApiModelProperty(notes = "商品明细及对应的单品活动", required = true)
    private List<GoodsDetailRequest> goodsDetailRequestList;
}
